cmake_minimum_required(VERSION 3.18)

project(app)

if(NOT TARGET Protobuf)
  find_package(Protobuf CONFIG REQUIRED)
endif()

include_directories(
  ${PROJECT_SOURCE_DIR}/include
)

aux_source_directory(${PROJECT_SOURCE_DIR}/src SOURCE_FILE)

add_executable(app ${SOURCE_FILE})

target_link_libraries(
  app
  PRIVATE 
  protobuf::libprotoc 
  protobuf::libprotobuf 
  protobuf::libprotobuf-lite
)